import Vue from 'vue'
import Router from 'vue-router'

import Msite from '../pages/Msite/MSite'
import Online from '../pages/Online/Online'
import InfoList from '../pages/InfoList/InfoList'
import Alleyway from '../pages/Alleyway/Alleyway'
import School from '../pages/School/School'
import Agency from '../pages/Agency/Agency'
import Campus from '../pages/Campus/Campus'
import Recruit from '../pages/Recruit/Recruit'
import InfoOpen from '../pages/InfoOpen/InfoOpen'
import Culture from '../pages/Culture/Culture'
import Teachers from '../pages/Teachers/Teachers'
import Science from '../pages/Science/Science'
import Budget from '../pages/Budget/Budget'
import Notice from '../pages/Notice/Notice'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Msite',
      component: Msite,
      meta: {
        title: '学校门户-学校首页'
      }
    },
    {
      path: '/msite',
      name: 'Msite',
      component: Msite,
      meta: {
        title: '学校门户-学校首页'
      }
    },
    {
      path: '/online',
      name: 'Online',
      component: Online,
      meta: {
        title: '学校门户-在线咨询'
      }
    },
    {
      path: '/channel',
      name: 'Channel',
      component: InfoList,
      meta: {
        title: '学校门户-学生频道'
      }
    },
    {
      path: '/links',
      name: 'Links',
      component: InfoList,
      meta: {
        title: '学校门户-特别链接'
      }
    },
    {
      path: '/alleyway',
      name: 'Alleyway',
      component: Alleyway,
      meta: {
        title: '学校门户-快速通道'
      }
    },
    {
      path: '/school',
      name: 'School',
      component: School,
      meta: {
        title: '学校门户-学校介绍'
      }
    },
    {
      path: '/agency',
      name: 'Agency',
      component: Agency,
      meta: {
        title: '学校门户-机构设置'
      }
    },
    {
      path: '/campus',
      name: 'Campus',
      component: Campus,
      meta: {
        title: '学校门户-分校简介'
      }
    },
    {
      path: '/recruit',
      name: 'Recruit',
      component: Recruit,
      meta: {
        title: '学校门户-招生信息'
      }
    }, {
      path: '/infoopen',
      name: 'InfoOpen',
      component: InfoOpen,
      meta: {
        title: '学校门户-信息公开'
      }
    },
    {
      path: '/culture',
      name: 'Culture',
      component: Culture,
      meta: {
        title: '学校门户-校园文化'
      }
    },
    {
      path: '/teachers',
      name: 'Teachers',
      component: Teachers,
      meta: {
        title: '学校门户-教师风采'
      }
    },
    {
      path: '/science',
      name: 'Science',
      component: Science,
      meta: {
        title: '学校门户-科学研究'
      }
    },
    {
      path: '/budget',
      name: 'Budget',
      component: Budget,
      meta: {
        title: '学校门户-预决算信息'
      }
    },
    {
      path: '/notice',
      name: 'Notice',
      component: Notice,
      meta: {
        title: '学校门户-通知公告'
      }
    },
  ]
})
